package com.woniu.outlet.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel("能源表")
@AllArgsConstructor
@NoArgsConstructor
public class Equipment {
    @ApiModelProperty(value = "设备id")
    private Long id;
    @ApiModelProperty(value = "设备名称")
    private String equipmentName;
    @ApiModelProperty(value = "设备编码")
    private String equipmentNo;
    @ApiModelProperty(value = "机器码")
    private String machineNo;
    @ApiModelProperty(value = "设备状态")
    private String equipmentStatus;
    @ApiModelProperty(value = "规格型号")
    private String equipmentType;
    @ApiModelProperty(value = "部门id")
    private Long departmentId;
    @ApiModelProperty(value = "单位")
    private String company;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "购置日期")
    private Date buyDate;
    @ApiModelProperty(value = "备注")
    private String remarks;
    @ApiModelProperty(value = "备用字段1",hidden = true)
    private String spare1;
    @ApiModelProperty(value = "备用字段2",hidden = true)
    private String spare2;
    @ApiModelProperty(value = "备用字段3",hidden = true)
    private String spare3;

}